package com.bearingnavi.android.views;

import android.content.Context;
import android.view.MotionEvent;
import android.widget.RelativeLayout;

public class RelativePositionLayout extends RelativeLayout {
	
	private float currentX;
	private float currentY;

	public RelativePositionLayout(Context context) {
		super(context);
	}
	
	@Override
	public boolean onTouchEvent(MotionEvent event) {
		currentX = event.getX();
		currentY = event.getY();
		return super.onTouchEvent(event);
	}
	
	public float getCurrentX() {
		return currentX;
	}
	
	public float getCurrentY() {
		return currentY;
	}

}
